how to add attribute to class python

30

setattr(objectClass, "newAttribute", "new attr")

Comments

Submit
0 Comments